
<style>
    .form-signin {
        max-width: 330px;
        padding: 15px;
        margin: 0 auto;
    }
    .form-signin .form-signin-heading,
    .form-signin .checkbox {
        margin-bottom: 10px;
    }
    .form-signin .checkbox {
        font-weight: normal;
    }
    .form-signin .form-control {
        position: relative;
        height: auto;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
        padding: 10px;
        font-size: 16px;
    }
    .form-signin .form-control:focus {
        z-index: 2;
    }
    .form-signin input[type="email"] {
        margin-bottom: -1px;
        border-bottom-right-radius: 0;
        border-bottom-left-radius: 0;
    }
    .form-signin input[type="password"] {
        margin-bottom: 10px;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
    }
</style>

<div class="container">
    <div class="well-small text-danger">
        <?php
        if (isset($actionResult)) {
            echo $actionResult;
        }
        ?>
    </div>
    <?php
    $form = $this->beginWidget('CActiveForm', array(
        "id" => "manage-spaceRelationship-form",
        'enableAjaxValidation' => FALSE,
        'htmlOptions' => array('class' => 'form-signin', 'role' => 'form'),
    ));
    ?>
    <h3 class="form-signin-heading text-muted"><?php echo '设置机构关系'; ?></h3>
    <?php
    echo CHtml::label('机构ID', 'mySpaceId');
    echo CHtml::activeTextField($model, $mySpaceIdField, array(
        'class' => 'form-control',
        'placeholder' => '机构ID...', 'required' => 'true', 'autofocus' => 'true'));
    echo CHtml::label('与本机构关系' . '：', 'relationship');
    echo CHtml::activeDropDownList($model, $relationshipField, $relationshipData, array(
        'class' => 'form-control',
        'placeholder' => '机构关系...',
        'required' => 'true'));
    ?>
    <label></label>
    <?php
    echo $control->getAjaxLink(
            array('name' => '保存机构关系', 'id' => BUISpaceConn::Add_Space_Relationship), array(
        'htmlOptions' => array(
            'class' => 'btn btn-primary btn-lg btn-block')));
    ?>
    <?php $this->endWidget(); ?>
</div>